<ion-view title="我要发货">
  <ion-nav-buttons side="left">
    <button class="button back-button buttons icon ion-ios-arrow-left button-clear header-item" nav-direction="back" ui-sref="menu">返回</button>
  </ion-nav-buttons>
    <ion-content>
      <div class="list list1 card">
        <label class="item item-input div" >
          &nbsp;<i class="input-label  col-25" >录入日期：</i>
          <button class="button button-block button-clear " style="text-align: right;font-size: 14px;margin-right: 42px;color: black" ng-click="showStartDate()">{{fhrq | date : "yyyy年MM月dd日"}}</button>
        </label>
        <div class="item item-input item-divider div">
          <i class="ion ion-person i balanced ti"></i>
          <i class="dark">发货信息</i>
        </div>
        <div class="item item-input div ">
          <input type="text"  ng-model="fhd.fhrmc" placeholder="姓名" maxlength="8">
          <i style="color: #9f9f9f">丨</i>
          <input type="tel" class="col-30" ng-model="fhd.fhrdh" placeholder="电话" maxlength="11" id="fhrdhval" onkeyup="value=value.replace(/\D/g,'')">
        </div>
        <div class="item item-input div" style="padding-left: 5px;">
          <div class="row  icon-left icon-right ">
            <i class="icon ion-asterisk assertive bitian" style="margin-left: -8px"></i>
            <select id="provinceF" class="proCity">
              <option>地区选择</option>
              <option ng-repeat="pros in provinces" value="{{pros.code}}">{{pros.name}}</option>
            </select>
            <i style="color: #9f9f9f">丨</i>
            <select id="cityF" class="proCity">
              <option ng-repeat="cit in citiesF" value="{{cit.code}}">{{cit.name}}</option>
            </select>
            <i style="color: #9f9f9f">丨</i>
            <select id="areaF" class="proCity">
              <option ng-repeat="are in areasF" value="{{are.code}}">{{are.name}}</option>
            </select>
          </div>
        </div>
        <div class="item item-input div">
          <input type="text" ng-model="fhd.fhrdz" placeholder="详细地址" maxlength="30">
        </div>
        <div class="item item-input item-divider div" ng-click="chooseShr(1)">
          <i class="ion ion-person i energized ti"></i>
          <i class="dark">收货信息</i>
          <i class="ion ion-ios-paper-outline" style="margin-left: auto;color: #8f8f8f;margin-right: 10px;font-size: 23px;"></i>
        </div>
        <div class="item item-input div ">
          <input type="text"  ng-model="fhd.shrmc" placeholder="姓名" maxlength="8">
          <i style="color: #9f9f9f">丨</i>
          <input type="tel" maxlength="11"  class="col-30" ng-model="fhd.shrdh" placeholder="电话" id="shrdhval" onkeyup="value=value.replace(/\D/g,'')">
        </div>
        <div class="item item-input div" style="padding-left: 5px;">
          <div class="row  icon-left icon-right ">
            <i class="icon ion-asterisk assertive bitian" style="margin-left: -8px"></i>
            <select id="provinceS" class="proCity">
              <option>地区选择</option>
              <option ng-repeat="pros in provinces" value="{{pros.code}}">{{pros.name}}</option>
            </select>
            <i style="color: #9f9f9f">丨</i>
            <select id="cityS" class="proCity">
              <option ng-repeat="cit in citiesS" value="{{cit.code}}">{{cit.name}}</option>
            </select>
            <i style="color: #9f9f9f">丨</i>
            <select id="areaS" class="proCity">
              <option ng-repeat="are in areasS" value="{{are.code}}">{{are.name}}</option>
            </select>
          </div>
        </div>
        <div class="item item-input div">
          <input type="text" ng-model="fhd.shrdz" placeholder="详细地址" maxlength="30">
        </div>
        <div class="item item-input item-divider div">
          <i class="ion ion-ios-list i calm ti"></i>
          <i class="dark">货物信息</i>
        </div>
        <div class="item item-input div">
          <div class="row">
            <i class="input-label">货名：</i>
            <input type="text" ng-model="fhd.hwmc" class="rightTxt" maxlength="10">
          </div>
        </div>
        <div class="item item-input div" style="margin-left: 5px;">件数：
          <input type="number" ng-model="fhd.sl" ng-change="changejian(fhd.sl)" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" class="rightTxt" style="margin-right: -25px"  id="jian" onkeypress="this.value = this.value.slice(0, 6)">
          <span style="color: darkgrey;margin-right: 13px;">件</span>
        </div>
        <div class="item item-input div" style="margin-left: 5px;">重量：
          <input type="number" ng-model="fhd.zl" class="rightTxt zlDot" style="margin-right: -25px"  id="zl" onkeypress="this.value = this.value.slice(0, 7)">
          <span style="color: darkgrey;margin-right: 13px;">吨</span>
        </div>
        <div class="item item-input div" style="margin-left: 5px;">体积：
          <input type="number" ng-model="fhd.tj" class="rightTxt tjDot" style="margin-right: -25px"  id="tj" onkeypress="this.value = this.value.slice(0, 7)">
          <span style="color: darkgrey;margin-right: 13px;">㎥</span>
        </div>
        <div class="item item-input item-select div" >
          <div class="row  icon-left icon-right ">
            <i class="input-label">送货方式：</i>
            <select class="select" id="shType" >
              <option ng-repeat="i in shfs" value="{{i.code}}">{{i.name}}</option>
            </select>
          </div>
        </div>
        <div class="item item-input item-divider div">
          <i class="ion ion-cash assertive ti"></i>&nbsp;&nbsp;&nbsp;
          <i style="height: 30px;line-height: 30px">费用</i>
        </div>
        <div class="item item-input div">
          <div class="row">
            <i class="input-label" >保价声明：</i>
            <input type="number" ng-model="fhd.bjsm" class="rightTxt bjsmDot"  onkeypress="this.value = this.value.slice(0, 9)">
          </div>
        </div>
        <div class="item item-input div">
          <div class="row">
            <i class="input-label ">代收货款：</i>
            <input type="number" ng-model="fhd.dshk" class="rightTxt dshkDot" onkeypress="this.value = this.value.slice(0, 9)">
          </div>
        </div>
        <div class="item item-input div">
          <div class="row">
            <i style="margin-top: 9px">投保否</i>
            <label class="toggle" style="margin-left: auto;">
              <input type="checkbox" ng-model="fhd.isTb">
              <div class="track">
                <div class="handle"></div>
              </div>
            </label>
          </div>
        </div>
        <div class="item item-input div">
          <div class="row">
            <i style="margin-top: 9px">回单否</i>
            <label class="toggle" style="margin-left: auto;">
              <input type="checkbox" ng-model="fhd.isHd">
              <div class="track">
                <div class="handle"></div>
              </div>
            </label>
          </div>
        </div>
        <div class="item item-input div">
          <div class="row">
            <i class="input-label col-5">备注：</i>
            <input type="text" ng-model="fhd.bz" maxlength="30">
          </div>
        </div>
      </div>
    </ion-content>
    <ion-footer-bar style="height: 50px">
      <a class="button button-positive save" id="save" ng-click="saveFhd()">保存</a>
      <a class="button button-positive print" id="fahuo" ng-click="submitFhd()">提交</a>
    </ion-footer-bar>
</ion-view>
